﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Commandparser.Types
{
    class @integer : IPropertyObject
    {

        public override IPropertyObject Parse(string content)
        {
            int result;
            int.TryParse(content, out result);
            return new @integer() { Value = result };
        }

        public override bool IsType(string content)
        {
            int result;
            return  int.TryParse(content, out result);
        }

    }
}
